package com.lorenzogao.paymodular;

import android.app.Application;

import com.lorenzogao.componentlib.IAppComponet;
import com.lorenzogao.componentlib.ServiceFactory;

/**
 * Created by GanLanPing
 * data:2019/3/2
 * time:14:41
 * 邮箱:2508719070@qq.com
 * Description:
 */

public class PayApp extends Application implements IAppComponet {



    private static Application application;

    public  static Application getApplication(){
        return  application;
    }


    @Override
    public void onCreate() {
        super.onCreate();
        initializa(this);

    }

    @Override
    public void initializa(Application app) {
        application=app;
        ServiceFactory.getInstance().setiPayService(new PayService());
    }
}
